package io.github.jesse205.dragdrop.pro.ui.settings

import android.os.Bundle
import io.github.jesse205.dragdrop.pro.R
import io.github.jesse205.dragdrop.pro.app.BaseActivity
import io.github.jesse205.dragdrop.pro.databinding.ActivitySettingsBinding
import io.github.jesse205.dragdrop.pro.extensions.fixSystemBars


class SettingsActivity : BaseActivity() {
    private var _binding: ActivitySettingsBinding? = null
    private val binding get() = _binding!!

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        _binding = ActivitySettingsBinding.inflate(layoutInflater)
        setContentView(binding.root)
        fixSystemBars(statusBarContrast = false, navigationBarContrast = true)
        supportFragmentManager.findFragmentById(R.id.nav_host_fragment)
    }

    override fun onSupportNavigateUp(): Boolean {
        if (supportFragmentManager.popBackStackImmediate()) {
            return true
        }
        return super.onSupportNavigateUp()
    }
}